﻿using BCCommon;
using BCCommon.OAEnums;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.Attendance.AttendanceCheckInRecord
{
    /// <summary>
    /// 
    /// </summary>
    public class AttendanceCheckInRecordRequestDto
    {
        /// <summary>
        /// 打卡方式
        /// </summary>		
        [Display(Name = "打卡方式")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public CheckInMode CheckInMode { get; set; }
        /// <summary>
        /// 打卡类型
        /// </summary>		
        [Display(Name = "打卡类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public CheckInType CheckInType { get; set; }
        /// <summary>
        ///  计算迟到和早退，基准时间
        /// </summary>		
        [Display(Name = "基准时间")]
        public string BaseCheckInTime { get; set; }
        /// <summary>
        /// 数据来源
        /// </summary>		
        [Display(Name = "数据来源")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public SourceType SourceType { get; set; }
        /// <summary>
        /// 选择的班次
        /// </summary>		
        [Display(Name = "选择的班次")]
        public long SelectedClassId { get; set; }
        /// <summary>
        /// 地址
        /// </summary>		
        public string Location { get; set; }
        /// <summary>
        /// Longitude
        /// </summary>		
        public double Longitude { get; set; }
        /// <summary>
        /// Latitude
        /// </summary>		
        public double Latitude { get; set; }
        /// <summary>
        /// wifi名称
        /// </summary>		
        public string WifiName { get; set; }
        /// <summary>
        /// MAC地址
        /// </summary>		
        [RegularExpression(RegexPatterns.MAC, ErrorMessage = "{0} 格式不正确")]
        public string MAC { get; set; }
        /// <summary>
        /// 打卡备注图片
        /// </summary>		
        public string RemarkImage { get; set; }
    }
}
